package com.example.demo;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import org.springframework.web.context.support.ServletRequestHandledEvent;

/**
 * 试试这个监听的事件
 * @author zzt
 *
 */
@Component
public class MyMapperLog implements ApplicationListener<ServletRequestHandledEvent>{

	@Override
	public void onApplicationEvent(ServletRequestHandledEvent evt) {
		System.out.println(evt.getDescription());
	}

}
